package org.crackjack.android.activity;

import org.crackjack.android.R;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class RegistrationActivity extends GenericActivity implements OnClickListener {

    private Button registrationButton;

    private EditText loginEditText;
    private EditText passwordEditText;
    private EditText confirmEditText;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_registration);

        registrationButton = (Button) findViewById(R.id.button_registration);

        loginEditText = (EditText) findViewById(R.id.edit_text_login);
        passwordEditText = (EditText) findViewById(R.id.edit_text_password);
        confirmEditText = (EditText) findViewById(R.id.edit_text_password_confirm);

        registrationButton.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.button_registration:
                if (passwordEditText.getText().toString().equals(confirmEditText.getText().toString())) {

                }
                break;

            default:
                break;
        }
    }

}
